<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<link href="gko100/front/validateForm/css/formitem.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="gko100/front/validateForm/jquery.form-1.0.1.js"></script>
<script type="text/javascript" src="gko100/front/validateForm/jquery.form.valid-1.0.1.js"></script>
<script type="text/javascript">

		$(function(){
			
			$("#username").username();
			$("#personinfo").textarea();
			$("#email").email();
			$("#phone").phone();
			$("#mobile").mobile();
			$("#authcode").authcode();
			
		});
	 	function changePic(){
            document.getElementById("picValidate").src = "pic_validate.jsp?time=" + Math.random();
        }
	</script>
	
<div class="Leave">
	<p>┣ <s:property value="nav.navName" />┫</p>
	<div>
		<form action="front/message_add.action" id="testform" method="post">
				<table class="formtable">
					
					<tr>
						<th>
							<label class="form-item-title"><s:text name="message.title" /></label>
						</th>
						<td>
							<input name="messageVo.title"  type="text" required="true"  valid='username'/>
						</td>
					</tr>
					<tr>
						<th>
							<label class="form-item-title"><s:text name="message.content" /></label>
						</th>
						<td>
							<textarea name="messageVo.content" required="true" rows="4" cols="40" id="personinfo" required="true"></textarea>
						</td>
					</tr>
					<tr>
						<th>
							<label class="form-item-title"><s:text name="message.uName" /></label>
						</th>
						<td>
							<input name="messageVo.name" id="username" type="text" valid='username'/>
						</td>
					</tr>
					

					<tr>
						<th>
							<label class="form-item-title"><s:text name="message.mobile" /></label>
						</th>
						<td>
							<input type="text" name="messageVo.mobile" id="mobile" valid='mobile' ></input>
						</td>
					</tr>
		
					<tr>
						<th>
							<label class="form-item-title"><s:text name="message.email" /></label>
						</th>
						<td>
							<input type="text" name="messageVo.email" id="email" required="true" valid='email' ></input>
						</td>
					</tr>
					<tr>
						<th>
							<label class="form-item-title"><s:text name="message.auth" /></label>
						</th>
						<td height="28">
							<input type="text" name="picValidate" id="authcode" required="true" valid='authcode' />
						</td>
						<td>
							<img id="picValidate" onclick="changePic()"  alt="点击刷新" title="点击刷新" src="gko100/back/pic_validate.jsp" Class="yz_img"/>
						</td>
					</tr>
					<tr>
						<td colspan="2" style="text-align:center;">
							<input type="submit" value="<s:text name="button.submit" />" />
							<input type="reset" value="<s:text name="button.reset" />" />
						</td>
					</tr>
					
				</table>
	
			</form>
  	</div>
  	
</div>

